package com.imesne.office.excel.write;

import com.imesne.office.excel.model.ExcelCell;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;

/**
 * Created by liyd on 17/7/5.
 */
public interface ExcelCellWriter {


    /**
     * 写excel 标题 cell
     *
     * @param workbook  the workbook
     * @param sheet     the sheet
     * @param row       the row
     * @param excelCell the excel cell
     * @return excel cell
     */
    Cell writeExcelTitleCell(Workbook workbook, Sheet sheet, Row row, ExcelCell excelCell);

    /**
     * 写excel cell
     *
     * @param workbook  the workbook
     * @param sheet     the sheet
     * @param row       the row
     * @param excelCell the excel cell
     * @return excel cell
     */
    Cell writeExcelCell(Workbook workbook, Sheet sheet, Row row, ExcelCell excelCell);
}
